package com.maimao.model.kill.enums;

import lombok.Getter;

/**
 * @author MaoLin Wang
 * @date 2021/4/11 10:38 上午
 */
@Getter
public enum KillApplyFailReason {

    /**
     * 秒杀申请审核状态
     */
    ACTIVITY_HAS_BEGIN(1, "活动已开始"),
    DISCOUNT_OUT_OF_RANGE(2, "折扣应在%s到%s折之间"),
    STOCK_NOT_ENOUGH(3, "商品SKU总库存不足%s"),
    DAY_LIMIT_EXIST(4, "商品在%s日内已经报名了该活动"),
    SKU_NOT_SELECTED(5, "未选择秒杀商品"),
    CHECK_ERROR(6, "审核出现问题，转人工中..."),
    EXIST_NOT_VALID_SKU(7, "您选择的商品中存在失效的SKU商品，请核查后再报名!"),
    GOOD_RATE_TOO_LOW(8, "商品:%s,好评率不足：%s"),
    SKU_NEW_ON_SELL(9, "商品:%s 为%s日内新上架商品，不可参与"),
    SCHEDULE_INVALID(9, "当前申请排期不存在或已关闭"),
    SCHEDULE_NOT_ENOUGH(10, "当前申请排期坑位不足"),

    ;


    KillApplyFailReason(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;

    private String msg;
}
